<body>
<nav class="navbar navbar-default" role="navigation">

	<div class="navbar-header">
		<a class="navbar-brand" href="#">iTools 用户数据统计</a>
	</div>

	<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
		<ul class="nav navbar-nav" id="main_nav">
			<li class="dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown">概况<b class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a id="nav_itools" href="javascript:void(0)">iTools</a></li>
					<li><a id="nav_ios" href="javascript:void(0)">iTools v2.0 Win</a></li>
				</ul>
			</li>
			<li><a id="nav_user" href="javascript:void(0)">用户参与度</a></li>
                        <li><a id="nav_ipa2exe" href="javascript:void(0)">Ipa2exe统计</a></li>
                        <li><a id="nav_others" href="javascript:void(0)">其他统计</a></li>
		</ul>

		<ul class="nav navbar-nav navbar-right">
			<li class="dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown">欢迎您：<?=$info['username']?><b class="caret"></b></a>
				<ul class="dropdown-menu">
                                        <li><a href="admin_manage/itools">进入后台</a></li>
					<li><a href="admin_login/logout">退出登录</a></li>
				</ul>
			</li>
		</ul>
	</div>
</nav>


<div class="row main">
	<h1>iTools </h1>

	<ul class="nav nav-tabs dataType-tabs" id="nav-tabs-group">
		<li id="menu_all" class="active"><a href="javascript:void(0)">数据总览</a></li>
		<li id="menu_setup" style="display:none"><a href="javascript:void(0)">安装量汇总</a></li>
		<li id="menu_setup_c" style="display:none"><a href="javascript:void(0)">安装渠道汇总</a></li>
		<li id="menu_total"><a href="javascript:void(0)">总量</a></li>
		<li id="menu_new"><a href="javascript:void(0)">新增用户统计</a></li>
		<li id="menu_active"><a href="javascript:void(0)">活跃用户统计</a></li>
		<li id="menu_launch"><a href="javascript:void(0)">启动次数</a></li>
		<li id="menu_collapse" style="display:none"><a href="javascript:void(0)">崩溃统计</a></li>
		<li id="menu_retained"><a href="javascript:void(0)">留存分析</a></li>
	</ul>

	<ul class="nav nav-tabs dataType-tabs" id="nav-tabs-group2" style="display:none">
		<li id="menu_timedist" class="active"><a href="javascript:void(0)">时长分析</a></li>
		<li id="menu_down_speed"><a href="javascript:void(0)">App下载速度分析</a></li>
		<li id="menu_down_count"><a href="javascript:void(0)">App下载量分析</a></li>
	</ul>
        
        <ul class="nav nav-tabs dataType-tabs" id="nav-tabs-group3" style="display:none">
		<li id="menu_ipa2exe" class="ipa2exe"><a href="javascript:void(0)">ipa2exe统计</a></li>
	</ul>
        
        <ul class="nav nav-tabs dataType-tabs" id="nav-tabs-group4" style="display:none">
		<li id="menu_function" class="function"><a href="javascript:void(0)">功能点统计</a></li>
	</ul>

	<div class="form-inline" style="margin:10px 0 5px 0;">
		<span style="vertical-align:middle;display:inline-block;padding:0 8px;">选择时间范围:</span>
		<div class="form-group"><label class="sr-only" for="exampleInputEmail2">开始时间</label><input type="text" class="form-control" id="s_time" placeholder="开始时间"></div>
		<span style="vertical-align:middle;display:inline-block;padding:0 8px;">至</span>
		<div class="form-group"><label class="sr-only" for="exampleInputEmail2">结束时间</label><input type="text" class="form-control" id="e_time" placeholder="结束时间"></div>

		<span id="parameditor">
		<span style="vertical-align:middle;display:inline-block;padding:0 0 0 8px;">产品:</span>
		<div id="menu_channel" class="btn-group" style="display:inline-block;vertical-align:top">
		<button class="btn select_text">全部</button>
		<button class="btn dropdown-toggle" data-toggle="dropdown">
		<span class="caret"></span>
		</button>
		<ul type="product" class="dropdown-menu" style="max-height:200px; overflow-y:auto">
		</ul>
		</div>

		<span style="vertical-align:middle;display:inline-block;padding:0 0 0 8px;">语言:</span>
		<div id="menu_language" class="btn-group" style="display:inline-block;vertical-align:top">
		<button class="btn select_text">全部</button>
		<button class="btn dropdown-toggle" data-toggle="dropdown">
		<span class="caret"></span>
		</button>
		<ul type="language" class="dropdown-menu" style="max-height:200px; overflow-y:auto">
		</ul>
		</div>

		<span style="vertical-align:middle;display:inline-block;padding:0 0 0 8px;">版本:</span>
		<div id="menu_version" class="btn-group" style="display:inline-block;vertical-align:top">
		<button class="btn select_text" >全部</button>
		<button class="btn dropdown-toggle" data-toggle="dropdown" >
		<span class="caret"></span>
		</button>
		<ul type="version" class="dropdown-menu" style="max-height:200px; overflow-y:auto">
		</ul>
		</div>
		<button class="btn btn-success btn-xs" id="add_line_btn">增加</button>
		</span>

		<div class="btn-group btn-group-sm" id="time_selection" style="float:right;margin-top:5px;">
			<button id="menu_hour" class="btn btn-default" style="display:none;">小时</button>
			<button id="menu_day" class="btn btn-default">日</button>
			<button id="menu_week" class="btn btn-default" >周</button>
			<button id="menu_month" class="btn btn-default">月</button>
			<button id="menu_7day" class="btn btn-default">7日</button>
			<button id="menu_30day" class="btn btn-default">30日</button>
		</div>
	</div>

	<table class="table table-hover" id="option_list">
		<thead>
			<tr><th>#</th><th>产品</th><th>语言</th><th>版本</th><th>操作</th></tr>
		</thead>
		<tbody></tbody>
	</table>
	
	<div style="position:relative;">
	<div id="charts" style="height:500px;padding:10px; border:1px solid #ddd; "></div>
	<div id="loading" style="width:100%;text-align:center;padding-top:240px;position:absolute;z-index:999;left:0;top:0;display:none;"><img src="/img/loading.gif" /></div>
	<div id="msg" style="width:100%;text-align:center;margin-top:240px;position:absolute;z-index:999;left:0;top:0;color:#999;display:none;">没有数据</div>
	<table class="table table-bordered" id="block"></table>
	</div>

	<div style="margin-top:10px;" id="active_message">
		<h3><strong>活跃用户概况</strong></h3>
		<table class="table table-bordered">
		<thead>
			<tr><th>昨日活跃用户</th><th>过去7天活跃用户</th><th>昨日活跃/过去7天活跃</th><th>过去30天活跃用户</th><th>昨日活跃/过去30天活跃</th></tr>
		</thead>
		<tbody>
			<tr><td>1234234</td><td>14434</td><td>1243</td><td>1010</td><td>42314324</td></tr>
		</tbody>
	</table>
	</div>

</div>
<p style="text-align:center;padding:15px;color:#999;font-size:12px;">&#169;thinksky.hk 仅支持最新版的chrome以及firefox!</p>
<script type="text/javascript" src="/js/iTools/itoolsStatistics.js"></script>
